library(shiny)
library(ECharts2Shiny)
shinyUI(fluidPage(
# We HAVE TO to load the ECharts javascript library in advance
loadEChartsLibrary(),
fluidRow(
column(6,
h3("Set 'line.width' and 'line.type' with Single Values", align = "center"),
h5("(use default 'point.size' and 'point.type')", align = "center"),
tags$div(id="test_1", style="width:100%;height:400px;"), # Specify the div for the chart. Can also be considered as a space holder
deliverChart(div_id = "test_1") # Deliver the plotting
),
column(6,
h3("Set 'line.width' and 'line. type ' with Vectors", align = "center"),
h5("(set 'point.size' and 'point.type' additionally)", align = "center"),
tags$div(id="test_2", style="width:100%;height:400px;"),
deliverChart(div_id = "test_2")
)
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.